//package com.bstek.bdf2.core.security;
//
//import org.apache.commons.codec.binary.Base64;
//import org.springframework.security.authentication.encoding.ShaPasswordEncoder;
//
///**
// * @since 2017-11-29
// * @author William.Jiang
// */
//public class Base64ShaPasswordEncoder extends ShaPasswordEncoder {
//	public static final String BEAN_ID = "bdf2.passwordEncoder";
//
//	public Base64ShaPasswordEncoder() {
//		super();
//	}
//
//	public Base64ShaPasswordEncoder(int strength) {
//		super(strength);
//	}
//
//	public String encodePassword(String rawPass, Object salt) {
//		byte[] datas = Base64.decodeBase64(rawPass);
//		String password = new String(datas);
//		return super.encodePassword(password, salt);
//	}
//}
